<!DOCTYPE html>
<html lang="pt-br">
  <head>
		<?php 
			include_once ('models/Veiculo.php');
			$v = new Veiculo;			
		?>
    </head>
    <body>	
        <div class="conteudo"> 
            <div class="conteudoHalf">          
				<scan id="titulo">Disponíveis</scan>										
				<?php
					foreach($v->getVeiculosDisp() as $l){ ?>
					<a href="movForm.php?tp=saida&id=<?php echo $l->getID(); ?>">
					<div class="veiculoDisp" title="<?php echo $l->getMarca()->getNome().' '.$l->getModelo(); ?>">
					<div class="veiculoPlaca"><?php echo $l->getPlaca(); ?></h1></div>				
					<div class="veiculoDescricao"><?php echo $l->getMarca()->getNome(). ' '.$l->getModelo(); ?></h2></div>								
					</div>	
					</a>					
				<?php
					}
				?>
            </div>
            
            <div class="conteudoHalf">
                <scan id="titulo">Em uso</scan>
				<?php
					foreach($v->getVeiculosUso() as $l){ ?>
					<a href="movForm.php?tp=chegada&id=<?php echo $l->getMovimentacao()->getID(); ?>">
					<div class="veiculoUso" title="<?php echo $l->getMarca()->getNome().' '.$l->getModelo(); ?>">
					<div class="veiculoPlaca"><?php echo $l->getPlaca(); ?></h1></div>				
					<div class="veiculoDescricao"><?php echo $l->getMarca()->getNome(). ' '.$l->getModelo(); ?></h2></div>								
					</div>	
					</a>					
				<?php
					}
				?>
            </div>
	<div>
  </body>
</html>